package com.hospital.diagnose.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PatientInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PatientInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPatNameIsNull() {
            addCriterion("pat_name is null");
            return (Criteria) this;
        }

        public Criteria andPatNameIsNotNull() {
            addCriterion("pat_name is not null");
            return (Criteria) this;
        }

        public Criteria andPatNameEqualTo(String value) {
            addCriterion("pat_name =", value, "patName");
            return (Criteria) this;
        }

        public Criteria andPatNameNotEqualTo(String value) {
            addCriterion("pat_name <>", value, "patName");
            return (Criteria) this;
        }

        public Criteria andPatNameGreaterThan(String value) {
            addCriterion("pat_name >", value, "patName");
            return (Criteria) this;
        }

        public Criteria andPatNameGreaterThanOrEqualTo(String value) {
            addCriterion("pat_name >=", value, "patName");
            return (Criteria) this;
        }

        public Criteria andPatNameLessThan(String value) {
            addCriterion("pat_name <", value, "patName");
            return (Criteria) this;
        }

        public Criteria andPatNameLessThanOrEqualTo(String value) {
            addCriterion("pat_name <=", value, "patName");
            return (Criteria) this;
        }

        public Criteria andPatNameLike(String value) {
            addCriterion("pat_name like", value, "patName");
            return (Criteria) this;
        }

        public Criteria andPatNameNotLike(String value) {
            addCriterion("pat_name not like", value, "patName");
            return (Criteria) this;
        }

        public Criteria andPatNameIn(List<String> values) {
            addCriterion("pat_name in", values, "patName");
            return (Criteria) this;
        }

        public Criteria andPatNameNotIn(List<String> values) {
            addCriterion("pat_name not in", values, "patName");
            return (Criteria) this;
        }

        public Criteria andPatNameBetween(String value1, String value2) {
            addCriterion("pat_name between", value1, value2, "patName");
            return (Criteria) this;
        }

        public Criteria andPatNameNotBetween(String value1, String value2) {
            addCriterion("pat_name not between", value1, value2, "patName");
            return (Criteria) this;
        }

        public Criteria andPatSexIsNull() {
            addCriterion("pat_sex is null");
            return (Criteria) this;
        }

        public Criteria andPatSexIsNotNull() {
            addCriterion("pat_sex is not null");
            return (Criteria) this;
        }

        public Criteria andPatSexEqualTo(Integer value) {
            addCriterion("pat_sex =", value, "patSex");
            return (Criteria) this;
        }

        public Criteria andPatSexNotEqualTo(Integer value) {
            addCriterion("pat_sex <>", value, "patSex");
            return (Criteria) this;
        }

        public Criteria andPatSexGreaterThan(Integer value) {
            addCriterion("pat_sex >", value, "patSex");
            return (Criteria) this;
        }

        public Criteria andPatSexGreaterThanOrEqualTo(Integer value) {
            addCriterion("pat_sex >=", value, "patSex");
            return (Criteria) this;
        }

        public Criteria andPatSexLessThan(Integer value) {
            addCriterion("pat_sex <", value, "patSex");
            return (Criteria) this;
        }

        public Criteria andPatSexLessThanOrEqualTo(Integer value) {
            addCriterion("pat_sex <=", value, "patSex");
            return (Criteria) this;
        }

        public Criteria andPatSexIn(List<Integer> values) {
            addCriterion("pat_sex in", values, "patSex");
            return (Criteria) this;
        }

        public Criteria andPatSexNotIn(List<Integer> values) {
            addCriterion("pat_sex not in", values, "patSex");
            return (Criteria) this;
        }

        public Criteria andPatSexBetween(Integer value1, Integer value2) {
            addCriterion("pat_sex between", value1, value2, "patSex");
            return (Criteria) this;
        }

        public Criteria andPatSexNotBetween(Integer value1, Integer value2) {
            addCriterion("pat_sex not between", value1, value2, "patSex");
            return (Criteria) this;
        }

        public Criteria andPatAgeIsNull() {
            addCriterion("pat_age is null");
            return (Criteria) this;
        }

        public Criteria andPatAgeIsNotNull() {
            addCriterion("pat_age is not null");
            return (Criteria) this;
        }

        public Criteria andPatAgeEqualTo(Integer value) {
            addCriterion("pat_age =", value, "patAge");
            return (Criteria) this;
        }

        public Criteria andPatAgeNotEqualTo(Integer value) {
            addCriterion("pat_age <>", value, "patAge");
            return (Criteria) this;
        }

        public Criteria andPatAgeGreaterThan(Integer value) {
            addCriterion("pat_age >", value, "patAge");
            return (Criteria) this;
        }

        public Criteria andPatAgeGreaterThanOrEqualTo(Integer value) {
            addCriterion("pat_age >=", value, "patAge");
            return (Criteria) this;
        }

        public Criteria andPatAgeLessThan(Integer value) {
            addCriterion("pat_age <", value, "patAge");
            return (Criteria) this;
        }

        public Criteria andPatAgeLessThanOrEqualTo(Integer value) {
            addCriterion("pat_age <=", value, "patAge");
            return (Criteria) this;
        }

        public Criteria andPatAgeIn(List<Integer> values) {
            addCriterion("pat_age in", values, "patAge");
            return (Criteria) this;
        }

        public Criteria andPatAgeNotIn(List<Integer> values) {
            addCriterion("pat_age not in", values, "patAge");
            return (Criteria) this;
        }

        public Criteria andPatAgeBetween(Integer value1, Integer value2) {
            addCriterion("pat_age between", value1, value2, "patAge");
            return (Criteria) this;
        }

        public Criteria andPatAgeNotBetween(Integer value1, Integer value2) {
            addCriterion("pat_age not between", value1, value2, "patAge");
            return (Criteria) this;
        }

        public Criteria andPatContactInfoIsNull() {
            addCriterion("pat_contact_info is null");
            return (Criteria) this;
        }

        public Criteria andPatContactInfoIsNotNull() {
            addCriterion("pat_contact_info is not null");
            return (Criteria) this;
        }

        public Criteria andPatContactInfoEqualTo(String value) {
            addCriterion("pat_contact_info =", value, "patContactInfo");
            return (Criteria) this;
        }

        public Criteria andPatContactInfoNotEqualTo(String value) {
            addCriterion("pat_contact_info <>", value, "patContactInfo");
            return (Criteria) this;
        }

        public Criteria andPatContactInfoGreaterThan(String value) {
            addCriterion("pat_contact_info >", value, "patContactInfo");
            return (Criteria) this;
        }

        public Criteria andPatContactInfoGreaterThanOrEqualTo(String value) {
            addCriterion("pat_contact_info >=", value, "patContactInfo");
            return (Criteria) this;
        }

        public Criteria andPatContactInfoLessThan(String value) {
            addCriterion("pat_contact_info <", value, "patContactInfo");
            return (Criteria) this;
        }

        public Criteria andPatContactInfoLessThanOrEqualTo(String value) {
            addCriterion("pat_contact_info <=", value, "patContactInfo");
            return (Criteria) this;
        }

        public Criteria andPatContactInfoLike(String value) {
            addCriterion("pat_contact_info like", value, "patContactInfo");
            return (Criteria) this;
        }

        public Criteria andPatContactInfoNotLike(String value) {
            addCriterion("pat_contact_info not like", value, "patContactInfo");
            return (Criteria) this;
        }

        public Criteria andPatContactInfoIn(List<String> values) {
            addCriterion("pat_contact_info in", values, "patContactInfo");
            return (Criteria) this;
        }

        public Criteria andPatContactInfoNotIn(List<String> values) {
            addCriterion("pat_contact_info not in", values, "patContactInfo");
            return (Criteria) this;
        }

        public Criteria andPatContactInfoBetween(String value1, String value2) {
            addCriterion("pat_contact_info between", value1, value2, "patContactInfo");
            return (Criteria) this;
        }

        public Criteria andPatContactInfoNotBetween(String value1, String value2) {
            addCriterion("pat_contact_info not between", value1, value2, "patContactInfo");
            return (Criteria) this;
        }

        public Criteria andPatNationIsNull() {
            addCriterion("pat_nation is null");
            return (Criteria) this;
        }

        public Criteria andPatNationIsNotNull() {
            addCriterion("pat_nation is not null");
            return (Criteria) this;
        }

        public Criteria andPatNationEqualTo(String value) {
            addCriterion("pat_nation =", value, "patNation");
            return (Criteria) this;
        }

        public Criteria andPatNationNotEqualTo(String value) {
            addCriterion("pat_nation <>", value, "patNation");
            return (Criteria) this;
        }

        public Criteria andPatNationGreaterThan(String value) {
            addCriterion("pat_nation >", value, "patNation");
            return (Criteria) this;
        }

        public Criteria andPatNationGreaterThanOrEqualTo(String value) {
            addCriterion("pat_nation >=", value, "patNation");
            return (Criteria) this;
        }

        public Criteria andPatNationLessThan(String value) {
            addCriterion("pat_nation <", value, "patNation");
            return (Criteria) this;
        }

        public Criteria andPatNationLessThanOrEqualTo(String value) {
            addCriterion("pat_nation <=", value, "patNation");
            return (Criteria) this;
        }

        public Criteria andPatNationLike(String value) {
            addCriterion("pat_nation like", value, "patNation");
            return (Criteria) this;
        }

        public Criteria andPatNationNotLike(String value) {
            addCriterion("pat_nation not like", value, "patNation");
            return (Criteria) this;
        }

        public Criteria andPatNationIn(List<String> values) {
            addCriterion("pat_nation in", values, "patNation");
            return (Criteria) this;
        }

        public Criteria andPatNationNotIn(List<String> values) {
            addCriterion("pat_nation not in", values, "patNation");
            return (Criteria) this;
        }

        public Criteria andPatNationBetween(String value1, String value2) {
            addCriterion("pat_nation between", value1, value2, "patNation");
            return (Criteria) this;
        }

        public Criteria andPatNationNotBetween(String value1, String value2) {
            addCriterion("pat_nation not between", value1, value2, "patNation");
            return (Criteria) this;
        }

        public Criteria andMdcRecPatDescriptionIsNull() {
            addCriterion("mdc_rec_pat_description is null");
            return (Criteria) this;
        }

        public Criteria andMdcRecPatDescriptionIsNotNull() {
            addCriterion("mdc_rec_pat_description is not null");
            return (Criteria) this;
        }

        public Criteria andMdcRecPatDescriptionEqualTo(String value) {
            addCriterion("mdc_rec_pat_description =", value, "mdcRecPatDescription");
            return (Criteria) this;
        }

        public Criteria andMdcRecPatDescriptionNotEqualTo(String value) {
            addCriterion("mdc_rec_pat_description <>", value, "mdcRecPatDescription");
            return (Criteria) this;
        }

        public Criteria andMdcRecPatDescriptionGreaterThan(String value) {
            addCriterion("mdc_rec_pat_description >", value, "mdcRecPatDescription");
            return (Criteria) this;
        }

        public Criteria andMdcRecPatDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("mdc_rec_pat_description >=", value, "mdcRecPatDescription");
            return (Criteria) this;
        }

        public Criteria andMdcRecPatDescriptionLessThan(String value) {
            addCriterion("mdc_rec_pat_description <", value, "mdcRecPatDescription");
            return (Criteria) this;
        }

        public Criteria andMdcRecPatDescriptionLessThanOrEqualTo(String value) {
            addCriterion("mdc_rec_pat_description <=", value, "mdcRecPatDescription");
            return (Criteria) this;
        }

        public Criteria andMdcRecPatDescriptionLike(String value) {
            addCriterion("mdc_rec_pat_description like", value, "mdcRecPatDescription");
            return (Criteria) this;
        }

        public Criteria andMdcRecPatDescriptionNotLike(String value) {
            addCriterion("mdc_rec_pat_description not like", value, "mdcRecPatDescription");
            return (Criteria) this;
        }

        public Criteria andMdcRecPatDescriptionIn(List<String> values) {
            addCriterion("mdc_rec_pat_description in", values, "mdcRecPatDescription");
            return (Criteria) this;
        }

        public Criteria andMdcRecPatDescriptionNotIn(List<String> values) {
            addCriterion("mdc_rec_pat_description not in", values, "mdcRecPatDescription");
            return (Criteria) this;
        }

        public Criteria andMdcRecPatDescriptionBetween(String value1, String value2) {
            addCriterion("mdc_rec_pat_description between", value1, value2, "mdcRecPatDescription");
            return (Criteria) this;
        }

        public Criteria andMdcRecPatDescriptionNotBetween(String value1, String value2) {
            addCriterion("mdc_rec_pat_description not between", value1, value2, "mdcRecPatDescription");
            return (Criteria) this;
        }

        public Criteria andMdcRecCheckpointIsNull() {
            addCriterion("mdc_rec_checkpoint is null");
            return (Criteria) this;
        }

        public Criteria andMdcRecCheckpointIsNotNull() {
            addCriterion("mdc_rec_checkpoint is not null");
            return (Criteria) this;
        }

        public Criteria andMdcRecCheckpointEqualTo(String value) {
            addCriterion("mdc_rec_checkpoint =", value, "mdcRecCheckpoint");
            return (Criteria) this;
        }

        public Criteria andMdcRecCheckpointNotEqualTo(String value) {
            addCriterion("mdc_rec_checkpoint <>", value, "mdcRecCheckpoint");
            return (Criteria) this;
        }

        public Criteria andMdcRecCheckpointGreaterThan(String value) {
            addCriterion("mdc_rec_checkpoint >", value, "mdcRecCheckpoint");
            return (Criteria) this;
        }

        public Criteria andMdcRecCheckpointGreaterThanOrEqualTo(String value) {
            addCriterion("mdc_rec_checkpoint >=", value, "mdcRecCheckpoint");
            return (Criteria) this;
        }

        public Criteria andMdcRecCheckpointLessThan(String value) {
            addCriterion("mdc_rec_checkpoint <", value, "mdcRecCheckpoint");
            return (Criteria) this;
        }

        public Criteria andMdcRecCheckpointLessThanOrEqualTo(String value) {
            addCriterion("mdc_rec_checkpoint <=", value, "mdcRecCheckpoint");
            return (Criteria) this;
        }

        public Criteria andMdcRecCheckpointLike(String value) {
            addCriterion("mdc_rec_checkpoint like", value, "mdcRecCheckpoint");
            return (Criteria) this;
        }

        public Criteria andMdcRecCheckpointNotLike(String value) {
            addCriterion("mdc_rec_checkpoint not like", value, "mdcRecCheckpoint");
            return (Criteria) this;
        }

        public Criteria andMdcRecCheckpointIn(List<String> values) {
            addCriterion("mdc_rec_checkpoint in", values, "mdcRecCheckpoint");
            return (Criteria) this;
        }

        public Criteria andMdcRecCheckpointNotIn(List<String> values) {
            addCriterion("mdc_rec_checkpoint not in", values, "mdcRecCheckpoint");
            return (Criteria) this;
        }

        public Criteria andMdcRecCheckpointBetween(String value1, String value2) {
            addCriterion("mdc_rec_checkpoint between", value1, value2, "mdcRecCheckpoint");
            return (Criteria) this;
        }

        public Criteria andMdcRecCheckpointNotBetween(String value1, String value2) {
            addCriterion("mdc_rec_checkpoint not between", value1, value2, "mdcRecCheckpoint");
            return (Criteria) this;
        }

        public Criteria andMdcRecResultIsNull() {
            addCriterion("mdc_rec_result is null");
            return (Criteria) this;
        }

        public Criteria andMdcRecResultIsNotNull() {
            addCriterion("mdc_rec_result is not null");
            return (Criteria) this;
        }

        public Criteria andMdcRecResultEqualTo(String value) {
            addCriterion("mdc_rec_result =", value, "mdcRecResult");
            return (Criteria) this;
        }

        public Criteria andMdcRecResultNotEqualTo(String value) {
            addCriterion("mdc_rec_result <>", value, "mdcRecResult");
            return (Criteria) this;
        }

        public Criteria andMdcRecResultGreaterThan(String value) {
            addCriterion("mdc_rec_result >", value, "mdcRecResult");
            return (Criteria) this;
        }

        public Criteria andMdcRecResultGreaterThanOrEqualTo(String value) {
            addCriterion("mdc_rec_result >=", value, "mdcRecResult");
            return (Criteria) this;
        }

        public Criteria andMdcRecResultLessThan(String value) {
            addCriterion("mdc_rec_result <", value, "mdcRecResult");
            return (Criteria) this;
        }

        public Criteria andMdcRecResultLessThanOrEqualTo(String value) {
            addCriterion("mdc_rec_result <=", value, "mdcRecResult");
            return (Criteria) this;
        }

        public Criteria andMdcRecResultLike(String value) {
            addCriterion("mdc_rec_result like", value, "mdcRecResult");
            return (Criteria) this;
        }

        public Criteria andMdcRecResultNotLike(String value) {
            addCriterion("mdc_rec_result not like", value, "mdcRecResult");
            return (Criteria) this;
        }

        public Criteria andMdcRecResultIn(List<String> values) {
            addCriterion("mdc_rec_result in", values, "mdcRecResult");
            return (Criteria) this;
        }

        public Criteria andMdcRecResultNotIn(List<String> values) {
            addCriterion("mdc_rec_result not in", values, "mdcRecResult");
            return (Criteria) this;
        }

        public Criteria andMdcRecResultBetween(String value1, String value2) {
            addCriterion("mdc_rec_result between", value1, value2, "mdcRecResult");
            return (Criteria) this;
        }

        public Criteria andMdcRecResultNotBetween(String value1, String value2) {
            addCriterion("mdc_rec_result not between", value1, value2, "mdcRecResult");
            return (Criteria) this;
        }

        public Criteria andMdcRecAdviceIsNull() {
            addCriterion("mdc_rec_advice is null");
            return (Criteria) this;
        }

        public Criteria andMdcRecAdviceIsNotNull() {
            addCriterion("mdc_rec_advice is not null");
            return (Criteria) this;
        }

        public Criteria andMdcRecAdviceEqualTo(String value) {
            addCriterion("mdc_rec_advice =", value, "mdcRecAdvice");
            return (Criteria) this;
        }

        public Criteria andMdcRecAdviceNotEqualTo(String value) {
            addCriterion("mdc_rec_advice <>", value, "mdcRecAdvice");
            return (Criteria) this;
        }

        public Criteria andMdcRecAdviceGreaterThan(String value) {
            addCriterion("mdc_rec_advice >", value, "mdcRecAdvice");
            return (Criteria) this;
        }

        public Criteria andMdcRecAdviceGreaterThanOrEqualTo(String value) {
            addCriterion("mdc_rec_advice >=", value, "mdcRecAdvice");
            return (Criteria) this;
        }

        public Criteria andMdcRecAdviceLessThan(String value) {
            addCriterion("mdc_rec_advice <", value, "mdcRecAdvice");
            return (Criteria) this;
        }

        public Criteria andMdcRecAdviceLessThanOrEqualTo(String value) {
            addCriterion("mdc_rec_advice <=", value, "mdcRecAdvice");
            return (Criteria) this;
        }

        public Criteria andMdcRecAdviceLike(String value) {
            addCriterion("mdc_rec_advice like", value, "mdcRecAdvice");
            return (Criteria) this;
        }

        public Criteria andMdcRecAdviceNotLike(String value) {
            addCriterion("mdc_rec_advice not like", value, "mdcRecAdvice");
            return (Criteria) this;
        }

        public Criteria andMdcRecAdviceIn(List<String> values) {
            addCriterion("mdc_rec_advice in", values, "mdcRecAdvice");
            return (Criteria) this;
        }

        public Criteria andMdcRecAdviceNotIn(List<String> values) {
            addCriterion("mdc_rec_advice not in", values, "mdcRecAdvice");
            return (Criteria) this;
        }

        public Criteria andMdcRecAdviceBetween(String value1, String value2) {
            addCriterion("mdc_rec_advice between", value1, value2, "mdcRecAdvice");
            return (Criteria) this;
        }

        public Criteria andMdcRecAdviceNotBetween(String value1, String value2) {
            addCriterion("mdc_rec_advice not between", value1, value2, "mdcRecAdvice");
            return (Criteria) this;
        }

        public Criteria andMdcRecPhysicianIsNull() {
            addCriterion("mdc_rec_physician is null");
            return (Criteria) this;
        }

        public Criteria andMdcRecPhysicianIsNotNull() {
            addCriterion("mdc_rec_physician is not null");
            return (Criteria) this;
        }

        public Criteria andMdcRecPhysicianEqualTo(String value) {
            addCriterion("mdc_rec_physician =", value, "mdcRecPhysician");
            return (Criteria) this;
        }

        public Criteria andMdcRecPhysicianNotEqualTo(String value) {
            addCriterion("mdc_rec_physician <>", value, "mdcRecPhysician");
            return (Criteria) this;
        }

        public Criteria andMdcRecPhysicianGreaterThan(String value) {
            addCriterion("mdc_rec_physician >", value, "mdcRecPhysician");
            return (Criteria) this;
        }

        public Criteria andMdcRecPhysicianGreaterThanOrEqualTo(String value) {
            addCriterion("mdc_rec_physician >=", value, "mdcRecPhysician");
            return (Criteria) this;
        }

        public Criteria andMdcRecPhysicianLessThan(String value) {
            addCriterion("mdc_rec_physician <", value, "mdcRecPhysician");
            return (Criteria) this;
        }

        public Criteria andMdcRecPhysicianLessThanOrEqualTo(String value) {
            addCriterion("mdc_rec_physician <=", value, "mdcRecPhysician");
            return (Criteria) this;
        }

        public Criteria andMdcRecPhysicianLike(String value) {
            addCriterion("mdc_rec_physician like", value, "mdcRecPhysician");
            return (Criteria) this;
        }

        public Criteria andMdcRecPhysicianNotLike(String value) {
            addCriterion("mdc_rec_physician not like", value, "mdcRecPhysician");
            return (Criteria) this;
        }

        public Criteria andMdcRecPhysicianIn(List<String> values) {
            addCriterion("mdc_rec_physician in", values, "mdcRecPhysician");
            return (Criteria) this;
        }

        public Criteria andMdcRecPhysicianNotIn(List<String> values) {
            addCriterion("mdc_rec_physician not in", values, "mdcRecPhysician");
            return (Criteria) this;
        }

        public Criteria andMdcRecPhysicianBetween(String value1, String value2) {
            addCriterion("mdc_rec_physician between", value1, value2, "mdcRecPhysician");
            return (Criteria) this;
        }

        public Criteria andMdcRecPhysicianNotBetween(String value1, String value2) {
            addCriterion("mdc_rec_physician not between", value1, value2, "mdcRecPhysician");
            return (Criteria) this;
        }

        public Criteria andMdcRecCreateDateIsNull() {
            addCriterion("mdc_rec_create_date is null");
            return (Criteria) this;
        }

        public Criteria andMdcRecCreateDateIsNotNull() {
            addCriterion("mdc_rec_create_date is not null");
            return (Criteria) this;
        }

        public Criteria andMdcRecCreateDateEqualTo(Date value) {
            addCriterion("mdc_rec_create_date =", value, "mdcRecCreateDate");
            return (Criteria) this;
        }

        public Criteria andMdcRecCreateDateNotEqualTo(Date value) {
            addCriterion("mdc_rec_create_date <>", value, "mdcRecCreateDate");
            return (Criteria) this;
        }

        public Criteria andMdcRecCreateDateGreaterThan(Date value) {
            addCriterion("mdc_rec_create_date >", value, "mdcRecCreateDate");
            return (Criteria) this;
        }

        public Criteria andMdcRecCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("mdc_rec_create_date >=", value, "mdcRecCreateDate");
            return (Criteria) this;
        }

        public Criteria andMdcRecCreateDateLessThan(Date value) {
            addCriterion("mdc_rec_create_date <", value, "mdcRecCreateDate");
            return (Criteria) this;
        }

        public Criteria andMdcRecCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("mdc_rec_create_date <=", value, "mdcRecCreateDate");
            return (Criteria) this;
        }

        public Criteria andMdcRecCreateDateIn(List<Date> values) {
            addCriterion("mdc_rec_create_date in", values, "mdcRecCreateDate");
            return (Criteria) this;
        }

        public Criteria andMdcRecCreateDateNotIn(List<Date> values) {
            addCriterion("mdc_rec_create_date not in", values, "mdcRecCreateDate");
            return (Criteria) this;
        }

        public Criteria andMdcRecCreateDateBetween(Date value1, Date value2) {
            addCriterion("mdc_rec_create_date between", value1, value2, "mdcRecCreateDate");
            return (Criteria) this;
        }

        public Criteria andMdcRecCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("mdc_rec_create_date not between", value1, value2, "mdcRecCreateDate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}